<!-- 左侧 -->
<div id='left'>
		<div class='userinfo'>
			<dl>
				<dt>
					<a href=""><img src="{$userinfo.face}" width='48' height='48' alt="占位符"/></a>
				</dt>
				<dd class='username'>
					<a href="./index.php?c=member&uid={$userinfo.uid}"><b>{$userinfo.username}</b>
					</a>
					<a href="">
						<i class='level lv1' title='Level 1'></i>
					</a>
				</dd>
				<dd>金币：<a href="" style="color: #888888;"><b class='point'>{$userinfo.point}</b></a></dd>
				<dd>经验值：{$userinfo.exp}</dd>
			</dl>
			<table>
				<tr>
					<td>回答数</td>
					<td>采纳率</td>
					<td class='last'>提问数</td>
				</tr>
				<tr>
					<td><a href="">{$userinfo.answer}</a></td>
					<td><a href="">{if $userinfo.answer == 0} 0 {else} {$userinfo.accept/$userinfo.answer*100|string_format:"%.2f"} {/if}%</a></td>
					<td class='last'><a href="">{$userinfo.ask}</a></td>
				</tr>
			</table>
		</div>

	<ul>
		{if $smarty.session.username and $smarty.session.uid and $smarty.session.uid == $smarty.get.uid}
		<li class='myhome {if !$smarty.get.a}cur{/if}'>
			<a href="./index.php?c=member&uid={$smarty.session.uid}">我的首页</a>
		</li>
		<li class='myask {if $smarty.get.a == my_ask}cur{/if}'>
			<a href="./index.php?c=member&a=my_ask&uid={$smarty.session.uid}">我的提问</a>
		</li>
		<li class='myanswer {if $smarty.get.a == my_answer}cur{/if}'>
			<a href="./index.php?c=member&a=my_answer&uid={$smarty.session.uid}">我的回答</a>
		</li>
		<li class='mylevel {if $smarty.get.a == my_level}cur{/if}'>
			<a href="./index.php?c=member&a=my_level&uid={$smarty.session.uid}">我的等级</a>
		</li>
		<li class='mygold {if $smarty.get.a == my_gold}cur{/if}'>
			<a href="./index.php?c=member&a=my_gold&uid={$smarty.session.uid}">我的金币</a>
		</li>
		<li class='myface {if $smarty.get.a == my_face}cur{/if}'>
			<a href="./index.php?c=member&a=my_face&uid={$smarty.session.uid}">上传头像</a>
		</li>
		{else}
		<li class='myhome {if !$smarty.get.a}cur{/if}'>
			<a href="./index.php?c=member&uid={$smarty.get.uid}">TA的首页</a>
		</li>
		<li class='myask {if $smarty.get.a == my_ask}cur{/if}'>
			<a href="./index.php?c=member&a=my_ask&uid={$smarty.get.uid}">TA的提问</a>
		</li>
		<li class='myanswer {if $smarty.get.a == my_answer}cur{/if}'>
			<a href="./index.php?c=member&a=my_answer&uid={$smarty.get.uid}">TA的回答</a>
		</li>
		<li class='mylevel {if $smarty.get.a == my_level}cur{/if}'>
			<a href="./index.php?c=member&a=my_level&uid={$smarty.get.uid}">TA的等级</a>
		</li>
		<li class='mygold {if $smarty.get.a == my_gold}cur{/if}'>
			<a href="./index.php?c=member&a=my_gold&uid={$smarty.get.uid}">TA的金币</a>
		</li>
		{/if}

		<li style="background:none"></li>
	</ul>
</div>
<!-- 左侧结束 -->